package com.mxx.common.core;

import com.mxx.common.utils.Strings;
import lombok.Data;

import java.io.Serializable;

/**
 * @author: mxx
 * @date: 2022/3/21
 * @time: 14:58
 * @Description: 描述信息
 */
@Data
public class Token implements Serializable {
    private String token;
    private Boolean exists;

    public static Token instance(String tokenVal) {
        Token token = new Token();
        token.token = tokenVal;
        token.exists = Strings.isNotEmpty(tokenVal);
        return token;
    }
}
